package tool

import (
	"group-card/common/constant"
	"time"
)

//region TODO: 字符串转时间 Author:LiuYanLin Date:2023/04/06 周四 15:14

func StringToTime(str string) time.Time {
	Time, err := time.ParseInLocation(constant.YMDHIS, str, time.Local)
	if err != nil {
		return time.Now()
	}
	return Time
}

//endregion
